import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 分位数统计
  queryQuantileStatistics: (query) => api.get(`${config.interfaces.type5}maat-report/v1/tenantDimensionLeverageAnalysis/quantileStatistics`, query),
  // 收益贡献分析
  revenueContributionAnalysis: (query) => api.post(`${config.interfaces.type5}maat-report/v1/tenantDimensionLeverageAnalysis/incomeContributionAnalysis`, query),
  // 倾向分析
  propensityAnalysis: (query) => api.post(`${config.interfaces.type5}maat-report/v1/tenantDimensionLeverageAnalysis/propensityAnalysis`, query),
};
